import request from '@/utils/request'

// 获取商品类目
export const fetchCategories = () => request.get('/api/categories')

// 根据商品 id 获取子类目
export const fetchCategoriesById = (id: number) => request.get(`/api/categories/${id}`)
